package com.pm.mapper.official;

import com.pm.entity.po.official.OfficialBaseData;
import com.pm.entity.vo.official.OfficialBaseDataVo;
import com.pm.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OfficialBaseDataMapper extends BaseMapper<OfficialBaseData> {

    Integer addOne(OfficialBaseData officialBaseData);

    Integer update(OfficialBaseData officialBaseData);

    Integer removeOne(Integer id);

    List<Map<String, String>> getBaseDataList(OfficialBaseDataVo officialBaseDataVo);

    Integer removeByMeanDevId(Integer meanDevId);

    void batchAdd(@Param("officialBaseDataList") List<OfficialBaseData> officialBaseDataList);

    Double getScoreSumByTaskIdAndTimeNode(@Param("taskId") String taskId, @Param("timeNode") String timeNode);

    List<String> getTaskIdListByMeanDevId(@Param("meanDevId") Integer meanDevId);
}